'use strict'

let Koa = require('koa');
let bodyparser = require('koa-bodyparser');
let server = require('koa-static');

let app = new Koa();

let controllers = require('./controllers');
let templating = require('./templating');

app.use(bodyparser());
app.use(templating);
app.use(server(__dirname,'/static'));
app.use(controllers());

(async()=>{
    console.log(hhh);
})

//监听端口，打印服务器信息
app.listen(3005,() => {
    console.log("http://localhost:3005");
})